how to remove characters from a string in python